package jiekou3;

/**
 * 农民类
 */
public class Farmer extends Role implements Mine,Treat,Attack,SelfIntroduce{
    public Farmer() {
    }

    public Farmer(String name, int level) {
        super(name, level);
    }

    @Override
    public void attack() {
        System.out.println(getName() + "使用了普通攻击");
    }

    @Override
    public void mine() {
        System.out.println(getName() + "使用了挖矿技能");
    }

    @Override
    public void treat() {
        System.out.println(getName() + "使用了治疗");
    }

    @Override
    public void selfIntroduce() {
        System.out.println("我是农民");
    }
}
